from generator import a
from alg import quickSort
#from alg2 import quickSort
#from alg3 import quickSort
import time
# 测试代码
print(f"排序前：{a}")
start_time = time.time()
quickSort(a, 0, len(a) - 1)  # 这是alg1和alg3的运行代码
#quickSort(a) #这是alg2.py的运行代码
end_time = time.time()
execution_time = end_time - start_time

print(f"排序后：{a}")  # 输出alg1或alg3排序后的列表
#print(quickSort(a)) # 输出alg2排序后的列表
print(f"Execution time: {execution_time:.6f} seconds")
